extends Control


onready var toast_container = $VBoxContainer

var ToastItem = preload("res://tool/common/Toast/ToastItem.tscn")

func _ready():
	pass
	

# 弹出消息
# @parm msg = 提示消息
# @parm time = 消息显示时间 time 秒
func toast_info(msg, time=2):
	var item =  ToastItem.instance()
	toast_container.add_child(item)
	
	item.set_data(msg, time)
	
	pass


